export const rootUrl = "http://157.119.183.40/pm25/index.php";
export const api = {
	//登录
	login: {
		url: rootUrl + "/user/login",
		method: 'POST',
	},

	getcode: {
		url: rootUrl + "/getcode",
		method: 'GET',
	},

	register: {
		url: rootUrl + "/enroll",
		method: "POST",
	},

	//监视
	aptData: {
		url: rootUrl + "/getdata",
		method: 'GET',
	},
	location: {
		url: rootUrl + "/location",
		method: 'GET',
	},
	notice: {
		url: rootUrl + "/day",
		method: 'GET',
	},

	//城市列表
	cityList: {
		url: rootUrl + "/site",
		method: 'GET',
	},

	//个人信息
	updateUser: {
		url: rootUrl + "/user",
		method: "PUT"
	},
	userinfo: {
		url: rootUrl + "/user",
		method: 'GET',
	},

	//pm2.5日历
	calendardata: {
		url: rootUrl + "/calendardata",
		method: 'GET',
	},
	//aqi 排行榜
	rank: {
		url: rootUrl + "/ranking",
		method: "GET",
	},

	//商品信息
	productList: {
		url: rootUrl + "/store",
		method: 'GET',
	},

	productDetail: {
		url: rootUrl + "/store",
		method: 'GET',
	},

	//
	aqiAnlysis: {
		url: rootUrl + "/mothdata",
		method: 'GET',
	},

	getEmailCode: {
		url: rootUrl + "/email",
		method: "POST",
	},

	forgetPassword: {
		url: rootUrl + "/forget",
		method: "POST",
	},

	siteList: {
		url: rootUrl + "/sitelist",
		method: 'GET',
	},
	getdaydata:{
		url: rootUrl + "/getdaydata",
		method: 'GET',
	}
}